package cn.zmwh.im.server.modules.ums.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import net.minidev.json.annotate.JsonIgnore;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 群
 * </p>
 *
 * @author dmzmwh
 * @since 2025-06-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("im_group")
@ApiModel(value = "ImGroup对象", description = "群")
public class ImGroup implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "群名字")
    private String name;

    @ApiModelProperty(value = "群主id")
    private Long ownerId;

    @ApiModelProperty(value = "群头像")
    private String headImage;

    @ApiModelProperty(value = "群头像缩略图")
    private String headImageThumb;

    @ApiModelProperty(value = "群公告")
    private String notice;

    @ApiModelProperty(value = "是否被封禁 0:否 1:是")
    private Integer isBanned;

    @ApiModelProperty(value = "被封禁原因")
    private String reason;

    @ApiModelProperty(value = "是否已解散")
    private Integer dissolve;

    @JsonIgnore
    @ApiModelProperty(value = "消息库")
    private Integer messageDb;

    @JsonIgnore
    @ApiModelProperty(value = "消息表")
    private Integer messageTable;

    @ApiModelProperty(value = "创建时间")
    private Date createdTime;


}
